//
//  ScrollController.swift
//  vmes
//
//  Created by 志鹏 翟 on 2022/4/25.
//

import Foundation
import UIKit
class ScrollController : BaseController{
    
    let scrollview=UIScrollView()
    let top=UIView()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        navigationController?.setNavigationBarHidden(false, animated: true)
        navigationController?.navigationBar.tintColor = .black
        self.navigationItem.title="工单开工"
        self.view.backgroundColor = .white
        view.addSubview(scrollview)
        scrollview.backgroundColor = .red
        scrollview.frame.size=view.frame.size
        scrollview.frame.size.height-=view.safeAreaInsets.top
        scrollview.frame.origin.y=view.safeAreaInsets.top
        scrollview.contentSize=CGSize(width: view.frame.width, height: 1000)
        top.backgroundColor = .white
        scrollview.addSubview(top)
        top.snp.makeConstraints { make in
//            make.width.equalTo(view.snp.width).offset(30)
            make.left.equalTo(view.snp.left).offset(10)
            make.right.equalTo(view.snp.right).offset(-10)
            make.height.equalTo(280)
//            make.centerX.equalTo(view.snp.centerX)
        }
    }
}
